import Home from '@/module/home/page/home.vue';
import page_list from '@/module/cms/page/page_list.vue';
import page_add from '@/module/cms/page/page_add.vue';
import page_edit from '@/module/cms/page/page_edit.vue';
import template_list from '@/module/cms/templatePage/template_list.vue';
import template_add from '@/module/cms/templatePage/template_add.vue';
import template_edit from '@/module/cms/templatePage/template_edit.vue';

export default [{
    path: '/',
    component: Home,
    name: 'CMS',//菜单名称
    hidden: false,

    children: [
      {path: '/cms/page/list', name:'页面管理', component: page_list, hidden: false},
      {path: '/cms/page/add', name:'新增页面', component: page_add, hidden: true},
      {path: '/cms/page/edit/:pageId', name:'修改页面', component: page_edit, hidden: true},
      {path: '/cms/template/list', name:'模板管理', component: template_list, hidden: false},
      {path: '/cms/template/add', name:'新增模板', component: template_add, hidden: true},
      {path: '/cms/template/edit/:templateId', name:'修改模板', component: template_edit, hidden: true},
    ]
  }
]
